<?php

/**
 * TipoDocumento form.
 *
 * @package    form
 * @subpackage TipoDocumento
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class TipoDocumentoForm extends BaseTipoDocumentoForm
{
  	public function configure()
  	{
  		parent::configure();
		
  		$this->widgetSchema['created_at'] = new sfWidgetFormInputHidden();
  		$this->widgetSchema['updated_at'] = new sfWidgetFormInputHidden();
  		
  		$options = array('N'=>'Inativo', 'A'=>'Ativo');
		$this->widgetSchema['st_tipo_documento'] = new sfWidgetFormChoice(
			array('choices'=>$options, 'expanded'=>true, 'multiple'=>false),
			array('class' => 'radio inline')
		);
		$this->setDefault('st_tipo_documento', 'A');
		
		
		
  		$this->widgetSchema->setLabels(array(
  	      	'id_tipo_documento' => '#ID',
	      	'nm_tipo_documento' => 'Nome',
  			'st_tipo_documento' => 'Situação',
	      	'created_at'        => 'Criado em',
	      	'updated_at'        => 'Atualizado em'
		));
  	}
}